package com.doule.farmerassistant.message;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.doule.farmerassistant.WebSocketService;
import com.doule.farmerassistant.R;

import org.json.JSONObject;

/**
 * Task fragment class.
 * 
 * @author riguang
 * 
 */
public class MessageFragment extends Fragment implements WebSocketService.NotifyListener {
    /**
     * TaskFragment class tag.
     */
    private static final String TAG = "MessageFragment";

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {

        View v = LayoutInflater.from(getActivity()).inflate(
                R.layout.fragment_task, null);

        return v;
    }

    @Override
    public void onDestroy() {
        WebSocketService.getInstance().removeNotifyListener("/taskstatus", this);
        super.onDestroy();
    }

    @Override
    public void onJSONNotify(JSONObject jobject) {
    }
}
